package pub_mgr

import (
	"venus/util/zid"
	"venus/util/zredis"
)

func CreateUuid() int64 {
	uid := zredis.Increment("id:uuid")
	if uid == 0 {
		uid = zid.New().Int64()
	}
	return uid
}

func CreatePid() int64 {
	uid := zredis.Increment("id:pid")
	if uid == 0 {
		uid = zid.New().Int64()
	}
	return uid
}
